﻿using System.Windows.Controls;

namespace YtbDownloader.Views;

/// <summary>
///     MainWindow.xaml 的交互逻辑
/// </summary>
public partial class MainView
{
    public MainView()
    {
        InitializeComponent();
    }

    private void ScrollViewer_ScrollChanged(object sender, ScrollChangedEventArgs e)
    {
        if (e.ExtentHeightChange > 0) (sender as ScrollViewer)?.ScrollToEnd();
    }
}